import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index.js'

/** 使用iview组件库 */
import iView from 'iview'
import 'iview/dist/styles/iview.css'    // 使用 CSS

/** 按需引入element-ui组件库 */
import 'element-ui/lib/theme-chalk/index.css'
import './element/element.js'

/** 引入scss文件 */
import './style/common.scss'
import './style/theme_colors/light.scss'
import './style/theme_colors/dark.scss'
import './style/font.css'
import './assets/iconfonts/iconfont.css'

/** 使用cookie */
import Cookie from "js-cookie";
Vue.prototype.$Cookie = Cookie;

/** 使用viewer 图片查看器 */
import './viewer/viewer.js'

/** 使用全局组件 */
import uploadPic from './components/uploadPic.vue'  // 上传商品图片对话框
Vue.component('uploadPic', uploadPic);

/** 使用draggable拖拽组件 */
import draggable from "vuedraggable";
Vue.component('draggable', draggable);

/** 使用eCharts */
import * as eCharts from 'echarts';
Vue.prototype.$echarts = eCharts;
import 'echarts-liquidfill'

/** 全局loading */
import loading1 from './components/loading/loading1.vue'
Vue.component('loading1', loading1);

/**  */


Vue.use(iView);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
